<template>
  <div class="rourmCenter-right-three linebox">
    <p class="theme-title">版 块</p>
    <div class="theme-list" @click="showlist(index)" v-for="(item,index) in cateList" :key="index">{{ item.name }}</div>
    <historylist :visible.sync="listVisible" :historyId="historyId"></historylist>
  </div>
</template>
<script>
import historylist from "./historylist";

export default {
  props: ['cateList'],
  name: 'Dialog',
  components: {
    historylist
  },
  data() {
    return {
      listVisible: false,
      historyId: 0
    }
  },
  created() {
  },
  methods: {
    showlist(index) {
      this.historyId = this.cateList[index].id
      this.listVisible = true
      // this.$router.push('/forumlist?id=' + this.cateList[index].id + '&title=' + this.cateList[index].name)
    }
  }
}
</script>

